<?php
class StudentModel extends Model{
	
	//protected $fields = array(
	//		'itemid','name','stu_id','status','updatetime','password','_pk' => 'itemid','_autoinc' => true
	//);
	
	protected $_validate=array(
		array('stu_id','require','学号必须!',),
		array('stu_id','number','学号必须为数字!',),
		array('stu_id','','学号不能重复',0,'unique',1,),
		array('name','require','名字必须!',),
		array('name','/^[\x{4e00}-\x{9fa5}]+$/u','名字必须为汉字！',),
		array('updatetime','require','入学年份必须!',),	
	);
	
	
	
}